/*
* FILENAME:		errcode.h
* CREATED AT:		2012/Jun/3
* DECRITION:		difine all the error code
* 
* MODULE:		error handling
* PLATFORM:		ubuntu-12.04/gcc-4.6.3
* AUTHOR:		incarnation-lee
* 
* ----------------------REVISION HISTROY------------------------
* No.	Date	Revised by	Function	Descrition
* 1	12/6/3	incar-lee	NA		define error codes
*
*/
#ifndef ERRCODE_H
#define ERRCODE_H


#define NoERROR		0			/* 0 no error */ 
/* operation error */
#define	NoEXIT 		1			/* operation on a uninitiliazed data structure or not exit */
#define MEMORYNA	2			/* get memory from system fail */
#define INVALIDINDEX	3			/* invalid index */
#define NMSPACE		4			/* no more space of this data structure */
#define INCONSISTENT	5			/* the field of data structure inconsistent */


#endif
